﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace sp500
{
    class DATATX
    {

        // TODO!!! refactor data class
        // 1 check the valid data format
        // 2 usable
        public int monthTX
        {
            get
            {
                return monthTX;
            }
            set
            {
                if (value>0||value<12)
                {
                    monthTX = value;
                }
                else
                {
                    throw new DataException("month must be 1~12 but input:"+value);
                }
            }
        }

        public int dayTX
        {
            get
            {
                return dayTX;
            }
            set
            {
                dayTX = value;
            }
        }

        public int yearTX
        {
            get
            {
                return yearTX;
            }
            set
            {
                yearTX = value;
            }
        }
    }
}
